package com.example.demo.enums;

import lombok.Getter;

public enum EventEnum {
    // 订阅
    subscribe,

    // 取消订阅
    unsubscribe,

    // 扫描带参数二维码
    SCAN;

    public static EventEnum getByName(String name) {
        return valueOf(name);
    }
}
